FROM openjdk:17-jdk-slim

WORKDIR /app
# 从 target 目录复制 hello.jar 到/app 目录
COPY target/blog-gateway-1.0-SNAPSHOT.jar /app/blog-gateway-1.0-SNAPSHOT.jar

EXPOSE 8080

ENTRYPOINT ["java", "-jar", "/blog-gateway-1.0-SNAPSHOT.jar"]